
package com.shop.cereshop.commons.domain.recommend;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDateTime;

import static com.baomidou.mybatisplus.annotation.SqlCondition.LIKE;

/**
 * <p>
 * 实体类
 * @用户表
 * </p>
 *
 * @since 2025-08-25
 */
@Data
@NoArgsConstructor
@ToString(callSuper = true)
@TableName("cere_recommend_at_user")
@ApiModel(value = "RecommendAtUser", description = "@用户表")
@AllArgsConstructor
@Accessors(chain = true)
public class RecommendAtUser implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * @主键id
     */
    @ApiModelProperty(value = "@主键id")
    @NotNull(message = "@主键id不能为空")
    @TableId(value = "at_id", type = IdType.AUTO)
    private Long atId;


    /**
     * @类型(1-动态，2-评论)
     */
    @ApiModelProperty(value = "@类型(1-动态，2-评论)")
    @TableField("at_type")
    private Integer atType;

    /**
     * @时操作的目标id
     */
    @ApiModelProperty(value = "@时操作的目标id")
    @TableField("at_target_id")
    private Long atTargetId;


    /**
     * @发起者用户id
     */
    @ApiModelProperty(value = "@发起者用户id")
    @TableField("buyer_user_id")
    private Long buyerUserId;


    /**
     * @用户id
     */
    @ApiModelProperty(value = "@用户id")
    @TableField("at_user_id")
    private Long atUserId;


    /**
     * @用户名称
     */
    @ApiModelProperty(value = "@用户名称")
    @Length(max = 255, message = "@用户名称长度不能超过255")
    @TableField(value = "at_username", condition = LIKE)
    private String atUsername;


    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;


    /**
     * 更新时间
     */
    @ApiModelProperty(value = "更新时间")
    @TableField("update_time")
    private LocalDateTime updateTime;




}
